<script>
    let a = '$json';
    let ipval = '$ip';
    let typeval = '$type';
    let countval = '$count';
    let ele = $('textarea')[0]
    let ip = $('input[name=ip]')[0]
    let type = $('select[name=type]')[0]
    let count = $('input[name=count]')[0]
    $(ele).val(a)
    $(ip).val(ipval)
    $(type).val(typeval)
    $(count).val(countval)
    let formNode = $('form[name=ip_search]')[0]
    if(countval <= 9){
        let i = setTimeout(function() {
            console.log(countval)
            $(formNode).submit()
        },10000)
    }
</script>
